/*
 * @Description:
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2023-06-20 18:06:15
 * @LastEditors: uphldjx 1373577124@qq.com
 * @LastEditTime: 2024-01-20 17:15:32
 */
// 列表
const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [],
}

export const baseConfig = {
	pageName: '床位',
	// 数据字典
	dictcodes: ['BED_TYPE'],
	addLabel: '',
	rowKey: 'id',
	tipLabel: 'buildingName',
	api: {
		index: 'view_dpOrgBedInfo_bedPage',
	},
	auth: {
		index: 'view_dpOrgBedInfo_bedPage',
	},
	// 当前行操作按钮
	menuBtn: [],
	dialogConfig: {
		width: '65%',
	},
	searchConfig: {
		inline: true,
		showBtn: true,
		labelPosition: 'left',
		column: [
			{ label: '房间号', prop: 'belongRoom', span: 6 },
			{ label: '床位号', prop: 'bed', span: 6 },
			{
				label: '床位类型',
				prop: 'bedType',
				propName: 'bedTypeLabel',
				changeField: true,
				code: 'BED_TYPE',
				type: 'remoteSelect',
				api: 'getDictItemList',
				filterKey: 'value',
				multiple: false,
				span: 6,
			},
		],
	},
	tableConfig,
}
